/**
 * 多选回调
 * @author 李荣华
 */
function multiBreakcall(result,ids,names){
	var nameValues = "";
	var idValues = "";
	for ( var i = 0; i < result.options.length; i++ )
    {
		if(result.options[i].text!="" && result.options[i].text!=null)
        {
            nameValues = nameValues + result.options[i].text;
            idValues = idValues +result.options[i].value;
            if(i < result.options.length - 1)
            {
                nameValues += ",";
                idValues += ",";
            }
        }
    }
    document.getElementById(ids).value = idValues;
    document.getElementById(names).value = nameValues;
    return idValues;
}

/**
 * 找开功能多选对话框
 * @author 李荣华
 */
function funMultiSelect(ids,names){
	var myObject = new Object();
	myObject.pWindow = window;
	myObject.idValues = document.getElementById(ids).value;
	myObject.nameValues = document.getElementById(names).value;
	myObject.ids = ids;
	myObject.names = names;
    window.showModalDialog('../Sys/SysFunction!multiSelect',
    myObject, 'dialogWidth: 482px; dialogHeight: 442px; edge: Raised; center: Yes; help: Yes; resizable: No; scroll:No; status: No;');	
    
}

/**
 * 找开机构多选对话框
 * @author 李荣华
 */
function orgMultiSelect(ids,names){
	var myObject = new Object();
	myObject.breakcall = multiBreakcall;
	myObject.idValues = document.getElementById(ids).value;
	myObject.nameValues = document.getElementById(names).value;
	myObject.ids = ids;
	myObject.names = names;
    window.showModalDialog('../Base/Organ!multiSelect',
    myObject, 'dialogWidth: 482px; dialogHeight: 442px; edge: Raised; center: Yes; help: Yes; resizable: No; scroll:No; status: No;');	
    
}

/**
 * 找开机构单选对话框
 * @author 李荣华
 */
function orgSingleSelect(id,name){
	var myObject = new Object();
	myObject.id = document.getElementById(id);
	myObject.name = document.getElementById(name);	
    myObject.pWindow=window;
    window.showModalDialog('../Base/Organ!singleSelect',
    myObject, 'dialogWidth: 252px;dialogHeight: 410px;edge: Raised; center: Yes; help: Yes; resizable: No; scroll:No; status: No;');				
}

/**
 * 打开区域单选对话框
 * @author 童天兴
 */
function regionSingleSelect(id,name){
	var myObject = new Object();
	myObject.id = document.getElementById(id);
	myObject.name = document.getElementById(name);	
    myObject.pWindow=window;
    window.showModalDialog('../region/singleSelect',
    myObject, 'dialogWidth: 252px;dialogHeight: 410px;edge: Raised; center: Yes; help: Yes; resizable: No; scroll:No; status: No;');				
}

/**
 * 打开区域多选对话框
 * @author 童天兴
 */
function regionMultiSelect(ids,names){
	var myObject = new Object();
	myObject.breakcall = multiBreakcall;
	myObject.idValues = document.getElementById(ids).value;
	myObject.nameValues = document.getElementById(names).value;
	myObject.ids = ids;
	myObject.names = names;
    window.showModalDialog('../region/multiSelect',
    myObject, 'dialogWidth: 482px; dialogHeight: 442px; edge: Raised; center: Yes; help: Yes; resizable: No; scroll:No; status: No;');	
    
}

/**
 * 找开专家单选对话框
 * @author 李荣华
 */
function manSingleSelect(id,name){
	var myObject = new Object();
	myObject.pWindow = window;
	myObject.id = document.getElementById(id);
	myObject.name = document.getElementById(name);
    window.showModalDialog('../Base/Person!singleSelect',
    myObject, 'dialogWidth: 352px; dialogHeight: 442px; edge: Raised; center: Yes; help: Yes; resizable: No; scroll:No; status: No;');
}

/**
 * 找开专家多选对话框
 * @author 李荣华
 */
function manMultiSelect(ids,names){
	var myObject = new Object();
	myObject.pWindow = window;
	myObject.breakcall = multiBreakcall;
	myObject.idValues = document.getElementById(ids).value;
	myObject.nameValues = document.getElementById(names).value;
	myObject.ids = ids;
	myObject.names = names;
    window.showModalDialog('../Base/Person!multiSelect',
    myObject, 'dialogWidth: 482px; dialogHeight: 442px; edge: Raised; center: Yes; help: Yes; resizable: No; scroll:No; status: No;');	
}

/**
 * 打开文件多选上传对话框
 * @author 李荣华
 * @Date 2012-03-14
 */
function bigFileMultiSelect(holdId){
	var myObject = new Object();
	myObject.pWindow = window;
    window.showModalDialog('../Edu/Resource!bigFileMultiSelect?object.id=' + holdId,
    myObject, 'dialogWidth: 700px; dialogHeight: 400px; edge: Raised; center: Yes; help: Yes; resizable: No; scroll:No; status: No;');
}
